package com.nf.xiaomi.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.nf.dbutils.Column;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@ToString
public class OrderEntity {
    @Column("product_detail_id")
    private Integer productDetailID;
    @Column("detail_id_list")
    private String detailIdList;
    @Column("sum_amount")
    private BigDecimal sumAmount;
    @Column("sum_price")
    private BigDecimal sumPrice;
    private List<Integer> productDetailIDList;
    @Column("order_id")
    private Integer orderID;
    @Column("user_id")
    private Integer user_id;
    @Column("user_account")
    private Long userAccount;
    @Column("user_name")
    private String userName;
    @Column("user_phone")
    private Long userPhone;
    @Column("address_content")
    private String addressContent;
    @Column("product_name")
    private String productName;
    @Column("attribute_list")
    private String attributeList;
    @Column("product_picture_list")
    private String productPictureList;
    @Column("order_mode")
    private String orderMode;
    @Column("product_detail_price")
    private BigDecimal productDetailPrice;
    @Column("product_detail_amount")
    private Integer productDetailAmount;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Column("order_date")
    private LocalDateTime orderDate;
    @Column("nstate")
    private Integer state;
    @Column("order_details_id")
    private Integer orderDetailsID;
    @Column("order_total_price")
    private BigDecimal orderTotalPrice;
}
